import request from '@/utils/request'

export default {
  // 分页搜索
  search(currentPage, pageSize, bookQueryVo) {
    return request({
      url: `/book/search/${currentPage}/${pageSize}`,
      method: 'post',
      data: bookQueryVo
    })
  },
  // 根据id修改状态
  modifyById(val, bookId) {
    return request({
      url: `/book/update/${val}/${bookId}`,
      method: 'put',
    })
  },
}
